<?php
/*
 * 测试添加栏目
 * Created on 2013-8-9
 */
ini_set('display_errors',1);
include dirname(__FILE__).'/utils.func.php';
include dirname(__FILE__).'/models/c2_task_model.php';

$action = isset($_GET['action'])?$_GET['action']:'add';
if($action=='add'){
	$category_info = array(
	'nns_name'=>'mgtv测试栏目',
	'nns_category_id'=>'1000888',
	'nns_parent_id'=>'-1',
	);
	c2_task_model::add_categoy( $category_info);	
}else if($action=='del'){
$category_info = array(
'nns_id'=>'1000888'
);	
	c2_task_model::add_categoy( $category_info);	
}



echo 'OK';
